#app {
  --color-danger: #ed5565;
}
.sys-name {
  opacity: 0;
  min-width: 400px;
}
.view-page {
  padding: 20px 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.text-danger {
  color: var(--color-danger);
}
.popovper-dark {
  --antd-arrow-background-color: #244048;
  .ant-popover-inner {
    background-color: #244048;
  }
}
.deviceTabsModal .ant-modal-content .ant-modal-body {
  padding-bottom: 35px;
}

.ant-picker-range .ant-picker-active-bar {
  display: none;
}
.ant-segmented {
  background-color: #6ad7ca;
  .ant-segmented-item-selected {
    background-color: #00000087;
  }
}

.text-title {
  font-weight: 700;
}

.ant-tree-title {
  span {
    white-space: nowrap;
  }
}

.dashboard_title {
  height: 6vh;
  line-height: 6vh;
  margin-left: 3vh;
  background: linear-gradient(180deg, #eefaff 0%, #5c899f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2vh;
  font-weight: 600;
}

.report_item {
  cursor: pointer;
  width: fit-content;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  & > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    &:nth-child(1) {
      padding-right: 15px;
      position: relative;
      &::after {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        content: '';
        display: block;
        min-width: 1.7px;
        height: 40px;
        background: linear-gradient(
          to bottom,
          rgba(255, 255, 255, 0.1),
          rgba(255, 255, 255, 0.2),
          rgba(255, 255, 255, 0.5),
          rgba(255, 255, 255, 0.9),
          rgba(255, 255, 255, 0.5),
          rgba(255, 255, 255, 0.2),
          rgba(255, 255, 255, 0.1)
        );
        opacity: 0.5;
      }
    }
    &:nth-child(2) {
      padding-left: 15px;
    }
    span {
      white-space: nowrap;
      &:nth-child(2) {
        font-size: 16px;
      }
    }
  }
  .num {
    font-size: 20px;
  }
  &.active {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.jv-code {
  background: rgba(0, 0, 0, 0.1);
}
.jv-container {
  background: transparent !important;
  &.boxed {
    border-color: transparent !important;
  }
}
// 解决 input/select有值后 鼠标滑过清除按钮变透明的问题
@mixin pseudo {
  position: absolute;
  top: 50%;
  z-index: 999;
  transform: translateY(-50%) rotate(45deg);
  content: '+';
  width: 12px;
  height: 12px;
  font-size: 15px;
  text-align: center;
  line-height: 10px;
  border-radius: 50%;
  color: #000;
  background: #fff;
}
.ant-select-clear {
  &::after {
    opacity: 0;
    right: 0;
    @include pseudo;
  }
}
.ant-select {
  &:hover {
    .ant-select-clear {
      &::after {
        opacity: 1;
      }
    }
  }
}

.ant-input-clear-icon {
  &::after {
    opacity: 1;
    right: 12px;
    @include pseudo;
  }
}
.ant-input-textarea,
.ant-input-affix-wrapper-textarea-with-clear-btn {
  .ant-input-clear-icon {
    &::after {
      opacity: 1;
      right: 0;
      @include pseudo;
    }
  }
}
.ant-select-item-option-state {
  color: #fff !important;
}

.ant-input-textarea-show-count::after {
  position: absolute;
  right: 10px;
  bottom: 0;
}

.ant-layout .ant-layout-sider-children {
  overflow-y: auto;
}

.modal_table_only {
  .ant-table {
    height: calc(65vh - 300px);
  }
  .ant-table-body {
    height: calc(65vh - 340px);
  }
}
